<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Thymeleaf setting-value-to-specific-attributes</title>
    <meta charset="UTF-8"/>
</head>

<!-- background 标签-->
<body background="#D0D0D0" th:background="${th_background}">
<!-- text 标签-->
<h1 th:text="${title}">html标签演示</h1>
<div>
    <h5>id、name、value标签:</h5>
    <!-- id、name、value标签-->
    <input
            id="input1"
            name="input1"
            th:id="${th_id}"
            th:name="${th_name}"
            th:value="${th_value}"
            value="1"
    />
</div>
<br/>
<div class="div1" th:class="${th_class}">
    <h5>class、href标签:</h5>
    <!-- class、href标签-->
    <a href="https://gitbook.cn/" th:href="${th_href}">链接地址</a>
</div>
</body>
</html>